package com.mornd.gulimall.apis.coupon.to;

import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Range;

import javax.validation.Valid;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * @author: mornd
 * @dateTime: 2023/8/5 - 10:29
 */

@Getter
@Setter
public class SkuReductionTo implements Serializable {

    @NotNull
    @Min(0)
    private Long skuId;

    @Min(0)
    private Integer fullCount;

    @Min(0)
    private BigDecimal discount;

    @Range(max = 1)
    private int discountAppend;

    @Min(0)
    private BigDecimal fullPrice;

    @Min(0)
    private BigDecimal reducePrice;

    @Range(max = 1)
    private int fullAppend;


    private List<@Valid MemberPriceTo> memberPrice;
}
